package com.mz.ieann.aide.city.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> des
 * <p>
 *
 * @author Created by Administrator
 * @date on 2021 2021/10/27 21:19
 */
public class BaseParam implements Parcelable {

    private String appkey;
    private String timestamp;
    private String appuid;

    public BaseParam(){

    }

    protected BaseParam(Parcel in) {
        appkey = in.readString();
        timestamp = in.readString();
        appuid = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(appkey);
        dest.writeString(timestamp);
        dest.writeString(appuid);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<BaseParam> CREATOR = new Creator<BaseParam>() {
        @Override
        public BaseParam createFromParcel(Parcel in) {
            return new BaseParam(in);
        }

        @Override
        public BaseParam[] newArray(int size) {
            return new BaseParam[size];
        }
    };

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getAppuid() {
        return appuid;
    }

    public void setAppuid(String appuid) {
        this.appuid = appuid;
    }

    @Override
    public String toString() {
        return "BaseParam{" +
                "appkey='" + appkey + '\'' +
                ", timestamp='" + timestamp + '\'' +
                ", appuid='" + appuid + '\'' +
                '}';
    }
}
